package com.eqs.enterprisequestionnaire.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@TableName("questionnaire")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Questionnaire {
    private Integer id;

    private String title;
    private String description;
    //private String type; //问卷类型
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
    private Integer authorId;
    private  LocalDateTime deadline;
    private boolean status;
    @TableField(exist = false)
    private Long count;//问卷被填写的次数

    @TableField(exist = false)
    private List<Question> questions;
    public Integer getQuestionnaireId(){
        return id;
    }
    public Boolean getStatus(){return status;}
}
